﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DomainModel.Entities.Album>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Details</h2>

<fieldset>
    <legend>Album</legend>   

     <div class="editor-label"></div>
     <div class="editor-field"><%= Html.Image(Model.Picture, new { width="200", height="220" })%></div>      

    <div class="display-label">Artist</div>
    <div class="display-field"><%: Model.Artist.ArtistName %></div>

    <div class="display-label">Album Name</div>
    <div class="display-field"><%: Model.AlbumName %></div>

    <div class="display-label">Release Year</div>
    <div class="display-field"><%: Model.AlbumReleaseYear %></div>   
</fieldset>
<p>

    <%: Html.ActionLink("Edit", "Edit", new { id=Model.AlbumID }) %> |
    <a href="<%: ViewData["referringUrl"].ToString() %>">Back to List</a>    
</p>


<% Html.RenderPartial("TracksUserControl", Model.Tracks); %>
</asp:Content>

